objects = main.o logging.o logstream.o timestamp.o

CCFLAGS = -std=c++11 -g -Wall -O0 -Wno-unused-variable
CC = g++
log : $(objects)
	$(CC) -o log $(objects)

main.o : main.cpp
	$(CC) -c $(CCFLAGS) main.cpp
logging.o : logging.cpp
	$(CC) -c $(CCFLAGS) logging.cpp
logstream.o : logstream.cpp
	$(CC) -c $(CCFLAGS) logstream.cpp
timestamp.o : timestamp.cpp
	$(CC) -c $(CCFLAGS) timestamp.cpp
	
.PHONY : clean
clean :
	   rm log $(objects)
